package ru.infosystem.client.data;

import java.io.Serializable;
import java.sql.Date;

/**
 *
 * @author akoshi
 */

public class Student implements Data {
    
    private String name;
    private String surname;
    private String patronymic;
    private int ID;


    public static Student NullStudent = new Student();
    private int    groupNumber;
    
    private Date   income;
    
    public Student() {
        
        name         = new String();
        surname         = new String();
        patronymic         = new String();
        income      = new Date(1993);
        groupNumber = 0;
        ID = -1;
    }
    
    public Student( int ID, String surname ,String name, String patronymic, int groupNumber, Date income) {
        
        this.name = name;
        this.surname = surname;
        this.patronymic = patronymic;
        this.income = income;
        this.groupNumber = groupNumber;
        this.ID= ID;
    }
    
    
    public Student( String surname ,String name, String patronymic, int groupNumber, Date income) {
        
        this.name = name;
        this.surname = surname;
        this.patronymic = patronymic;
        this.income = income;
        this.groupNumber = groupNumber;
        this.ID= -1;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPatronymic() {
        return patronymic;
    }

    public void setPatronymic(String patronymic) {
        this.patronymic = patronymic;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }
    
    
    public Date getIncome() {
        return income;
    }
    
    public void setIncome( Date income ) {
        this.income = income;
    }    
    
    public int getGroupNumber() {
        return groupNumber;
    }
    
    public void setGroupNumber( int groupNumber ) {
        this.groupNumber = groupNumber;
    }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String toString() {
        return "Student{" + "name=" + name + "surname=" + surname + "patronymic=" + patronymic + "ID=" + ID + "groupNumber=" + groupNumber + "income=" + income + '}';
    }


    


}
